﻿using SD.Infrastructure.DomainServiceBase;
using SlamDunk.MES.Domain.Entities.ExecutionContext;
using SlamDunk.MES.Domain.Entities.PlanContxt;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IDomainServices
{
    /// <summary>
    /// 工单领域服务接口
    /// </summary>
    public interface IWorkOrderService : IDomainService<WorkOrder>
    {
        #region # 生成工单 —— ICollection<WorkOrder> GenerateWorkOrders(ExecutionPlan executionPlan)
        /// <summary>
        /// 生成工单
        /// </summary>
        /// <param name="executionPlan">作业计划</param>
        /// <returns>工单列表</returns>
        ICollection<WorkOrder> GenerateWorkOrders(ExecutionPlan executionPlan);
        #endregion
    }
}
